package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "dq_goods_convert_order")
public class DqGoodsConvertOrder {//订单

    private long id;//ID

    private String orderId;//订单号

    private int price;//订单单价

    private int sumPices;//订单总额，，1分为单位

    private String remark;//备注

    private long numPiece;//订单数量

    private Timestamp createTime;//创建时间

    private long userid;//订单用户id

    private String openid;//订单用户openid

    private int paystatus;//订单是否已付款  1：已付款，0：未付款

    private int pickUpstatus;//订单是否提货  1：提货，0：未提货

    private int sendStatus;//订单是否已发货  1：已发货，0：未发货

    private String mainPic;//订单主图；

    private String orderUserNickName;//订单用户昵称；

    private String orderUserImg;//订单用户头像；

    private String orderAddress;//订单地址；

    private long addressId;//地址id

    private String mobilePhone;//用户手机号码

    private String intro;//商品简介

    private String expressNum;//快递号

    private String expressComp;//快递公司


    @Basic
    @Column(name = "express_num")
    public String getExpressNum() {
        return expressNum;
    }

    public void setExpressNum(String expressNum) {
        this.expressNum = expressNum;
    }
    @Basic
    @Column(name = "express_comp")
    public String getExpressComp() {
        return expressComp;
    }

    public void setExpressComp(String expressComp) {
        this.expressComp = expressComp;
    }

    @Basic
    @Column(name = "intro")
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Basic
    @Column(name = "address_id")
    public long getAddressId() {
        return addressId;
    }

    public void setAddressId(long addressId) {
        this.addressId = addressId;
    }

    @Basic
    @Column(name = "mobile_phone")
    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "main_pic")
    public String getMainPic() {
        return mainPic;
    }

    public void setMainPic(String mainPic) {
        this.mainPic = mainPic;
    }
    @Basic
    @Column(name = "order_id")
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    @Basic
    @Column(name = "price")
    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
    @Basic
    @Column(name = "sum_prices")
    public int getSumPices() {
        return sumPices;
    }

    public void setSumPices(int sumPices) {
        this.sumPices = sumPices;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Basic
    @Column(name = "num_piece")
    public long getNumPiece() {
        return numPiece;
    }

    public void setNumPiece(long numPiece) {
        this.numPiece = numPiece;
    }
    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "userid")
    public long getUserid() {
        return userid;
    }

    public void setUserid(long userid) {
        this.userid = userid;
    }
    @Basic
    @Column(name = "openid")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    @Basic
    @Column(name = "pay_status")
    public int getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(int paystatus) {
        this.paystatus = paystatus;
    }

    @Basic
    @Column(name = "pickUp_status")
    public int getPickUpstatus() {
        return pickUpstatus;
    }

    public void setPickUpstatus(int pickUpstatus) {
        this.pickUpstatus = pickUpstatus;
    }

    @Basic
    @Column(name = "send_status")
    public int getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(int sendStatus) {
        this.sendStatus = sendStatus;
    }
    @Basic
    @Column(name = "order_user_nick_name")
    public String getOrderUserNickName() {
        return orderUserNickName;
    }

    public void setOrderUserNickName(String orderUserNickName) {
        this.orderUserNickName = orderUserNickName;
    }
    @Basic
    @Column(name = "order_user_img")
    public String getOrderUserImg() {
        return orderUserImg;
    }

    public void setOrderUserImg(String orderUserImg) {
        this.orderUserImg = orderUserImg;
    }
    @Basic
    @Column(name = "order_address")
    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }


    public DqGoodsConvertOrder() {
    }

    @Override
    public String toString() {
        return "RwGoodOrder{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", price=" + price +
                ", sumPices=" + sumPices +
                ", remark='" + remark + '\'' +
                ", numPiece=" + numPiece +
                ", createTime=" + createTime +
                ", userid=" + userid +
                ", openid='" + openid + '\'' +
                ", paystatus=" + paystatus +
                ", sendStatus=" + sendStatus +
                ", mainPic='" + mainPic + '\'' +
                ", orderUserNickName='" + orderUserNickName + '\'' +
                ", orderUserImg='" + orderUserImg + '\'' +
                ", orderAddress='" + orderAddress + '\'' +
                ", addressId=" + addressId +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", intro='" + intro + '\'' +
                '}';
    }
}
